docs: add deployment and threading safety guide (closes #48)#63
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughA new ChangesDeployment Documentation and Cross-references
🎯 2 (Simple) | ⏱️ ~8 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Closes #48
Summary
DEPLOYMENT.mddocumenting supported WSGI setups (Werkzeug dev server, gunicorn, waitress), concurrency models, and production quick-start examples._workspace_path_overrideis protected bythreading.Lock, so multi-threaded single-process deployment is supported; multi-process deployments note per-worker state forPOST /api/set-workspace.WORKSPACE_PATH/CLI_CHATS_PATH/ API path trust boundaries (validated API vs trusted-operator env vars).DEPLOYMENT.mdin the sdist viapyproject.toml.Closes #48.
Test plan
DEPLOYMENT.mdfor accuracy againstutils/workspace_path.pyandapp.pyapp:create_appfactory patternpython -m unittest tests.test_workspace_path_thread_safety -v(regression for documented lock behavior)Summary by CodeRabbit